<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:'',
				idP:'',
				srcP:''
			};
		},
		onLoad(option) {
			this.srcP = option.src
			if(option.id){
				this.idP = option.id
				this.src = option.src+'?id='+option.id
			}else{
				this.src = option.src
			}
		},
		onShareAppMessage(){
			let that=this
			 return {
			      path:'/pages/webview/webview?src='+that.srcP+'&id='+that.idP ,
			    };
		},
	}
</script>

<style lang="scss">

</style>
